package sg.edu.nus.iss.umpire.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;

@Entity
public class Session implements Serializable {
	public static final String SLOT_MORNING = "Morning";
	public static final String SLOT_AFTERNOON = "Afternoon";
	public static final String SLOT_EVENING = "Evening";
	private static final long serialVersionUID = -1502478756887609367L;
	@Id
   @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Key sessionKey;
	private String slotName;
	
	private List<Long> confirmedUmpire = new ArrayList<Long>();
	
	private List<Long> availUmpire = new ArrayList<Long>();
	
	private Key competitionDayKey; 
	
	public Key getSessionKey() {
		return sessionKey;
	}
	public void setSessionKey(Key sessionKey) {
		this.sessionKey = sessionKey;
	}
	public String getSlotName() {
		return slotName;
	}
	public void setSlotName(String slot) {
		this.slotName = slot;
	}
	public List<Long> getConfirmedUmpire() {
		return confirmedUmpire;
	}
	public void setConfirmedUmpire(List<Long> confirmedUmpire) {
		this.confirmedUmpire = confirmedUmpire;
	}
	public List<Long> getAvailUmpire() {
		return availUmpire;
	}
	public void setAvailUmpire(List<Long> availUmpire) {
		this.availUmpire = availUmpire;
	}
	public Key getCompetitionDayKey() {
		return competitionDayKey;
	}
	public void setCompetitionDayKey(Key competitionDayKey) {
		this.competitionDayKey = competitionDayKey;
	}
	@Override
	public String toString() {
		return "Session [sessionKey=" + sessionKey + ", slot=" + slotName
				+ ", confirmedUmpire=" + confirmedUmpire + ", availUmpire="
				+ availUmpire + ", competitionDayKey=" + competitionDayKey
				+ "]";
	}
	
	
}
